<h1 class="pagetitle"><?php echo $title;?></h1>
<div class="column1-unit">
 	<table id="entitylist" class="entitylist" summary="<?php echo $title; ?>" cellspacing="0">
		<thead>
			<!--<tr>
				<td class="entity-list-head" colspan="5"><?php echo $title; ?></td>
			</tr>-->
			<tr>
				<?php
					foreach($columns as $column){
				?>		
					<!-- <th class="entity-list-head"><?php echo $column;?></th>-->
					<th class="top" scope="col"><?php echo $column;?></th>
				<?php 		
					} 
				?>
					<th class="top" scope="col">&nbsp;</th>
					<th class="top" scope="col">&nbsp;</th>
            </tr>
		</thead>
		<tbody>
			<?php
				foreach($rows as $row){
			?>
				<tr>
					<?php
						for($i=0; $i< count($row)-1;$i++){
							if ($i==0) echo "<th scope=\"row\">$row[$i]</th>";
							else	   echo "<td>$row[$i]</td>";
						}
					?>
					<td><a class="entity-edit" href="<?php echo "#".$row[count($row)-1]; ?>">edit</a></td>
					<td><a class="entity-del" href="<?php echo "#".$row[count($row)-1]; ?>">del</a></td>
				</tr>
			<?php
			 	}
			?>
		
		</tbody>
		<tfoot>
			
		</tfoot>
	</table>
	<p class="caption"><strong>Tabla 1.1.</strong> <?php echo $title;?></p>
</div>          
<hr class="clear-contentunit" />